package com.qf.smsplatform.controller;
/*2021/11/4*/

import com.qf.smsplatform.dto.R;
import com.qf.smsplatform.pojo.TMultipleParams;
import com.qf.smsplatform.service.TMultipleParamsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @YuTao
 */
@RestController
@RequestMapping("/multParams")
@Api(tags = "动态参数表")
public class TMultipleParamsController {
    /*
    动态参数查询表，在表中存储了参数，信息，提供修改方法，从而使用规定的参数进行查询
     */

    private TMultipleParamsService multipleParamsService;
    @Autowired
    public void setMultipleParamsService(TMultipleParamsService multipleParamsService) {
        this.multipleParamsService = multipleParamsService;
    }

    @PostMapping("/update")
    @ApiOperation("动态查询参数控制")
    public R updateMultParams(TMultipleParams tMultipleParams){
        multipleParamsService.updateTMultParams(tMultipleParams);
        return R.setOk();
    }
}
